package com.runtime.area.service.impl;

import com.runtime.area.mapper.AreaMapper;
import com.runtime.area.service.AreaService;
import com.runtime.bean.Tblarea;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    private AreaMapper areaMapper;

    @Override
    public List<Tblarea> findAll() {
        return areaMapper.findAll();
    }

    @Override
    public Tblarea findById(long areaId) {
        return areaMapper.findById(areaId);
    }
}
